﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

using SmartSiteManagementSystem.Models.Admin;

namespace SmartSiteManagementSystem.IRepository.Admin
{
    public interface IAdminUserGroupRelationInfoRepository
    {
        /// <summary>
        /// 取得记录数
        /// </summary>
        /// <param name="param">可选参数为：</param>
        /// <returns></returns>
        int GetCount(Hashtable param);

        /// <summary>
        /// 取得某用户拥有的组
        /// </summary>
        /// <param name="AdminUserId"></param>
        /// <returns></returns>
        IList<AdminUserGroupRelationInfo> GetList(Hashtable param);



        /// <summary>
        /// 插入数据
        /// </summary>
        /// <param name="obj">对象</param>
        /// <returns>返回：该条数据的主键Id</returns>
        int Insert(AdminUserGroupRelationInfo obj);

        /// <summary>
        /// 删除数据
        /// </summary>
        /// <param name="param">param</param>
        /// <returns>返回</returns>
        bool Delete(Hashtable param);
    }
}
